package com.gsoe.problem.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 题目答案表
 * </p>
 *
 * @author xiaoma
 * @since 2024-10-27
 */
@Getter
@Setter
@TableName("problem_answer")
public class ProblemAnswer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 题目id
     */
    private Long problemId;

    /**
     * 答案(判断：正确、错误   多选：按字典序)
     */
    private String answer;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 修改名
     */
    @TableField(fill = FieldFill.INSERT)
    private String updateUserName;
}
